﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BuddHa.Wechat.Mini.Responses
{
    public class ResponseGetUserPhoneNumber
    {
        [JsonPropertyName("errcode")]
        public int ErrCode { get; set; }

        [JsonPropertyName("errmsg")]
        public string? ErrMsg { get; set; }

        [JsonPropertyName("phone_info")]
        public PhoneInfo PhoneInfo { get; set; }
    }

    public class PhoneInfo
    {
        [JsonPropertyName("phoneNumber")]
        public string PhoneNumber { get; set; }

        [JsonPropertyName("purePhoneNumber")]
        public string PurePhoneNumber { get; set; }

        [JsonPropertyName("countryCode")]
        public string CountryCode { get; set; }

        [JsonPropertyName("watermark")]
        public WaterMark WaterMark { get; set; }
    }

    public class WaterMark
    {
        [JsonPropertyName("timestamp")]
        public long TimeStamp { get; set; }

        [JsonPropertyName("appid")]
        public string Appid { get; set; }
    }
}
